﻿@model  ZBJF.Warranty.Model.SystemRole
@using (Html.BeginForm("Save", "Role", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.HiddenFor(m => m.ID)
    <div class="control-group">
        <label class="control-label">角色名称:</label>
        <div class="controls">
            @Html.TextBoxFor(m => m.RoleName, new { @class = "col-sm-8", validate = "{required:true,messages:{required:'请输入角色名称'}}" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色代码:</label>
        <div class="controls">
            @Html.TextBoxFor(m => m.RoleCode, new { @class = "col-sm-8", validate = "{required:true,messages:{required:'请输入角色代码'}}" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色简介:</label>
        <div class="controls">
            @Html.TextBoxFor(m => m.Intro, new { @class = "col-sm-8" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">排序数字:</label>
        <div class="controls">
            @Html.TextBoxFor(m => m.OrderIndex, new { @class = "col-sm-8", validate = "{required:true,digits:true,messages:{required:'请输入排序数字'}}" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色状态</label>
        <div class="controls">
            <label> @Html.RadioButtonFor(m => m.IsAvailable, "true", new { @name = "IsAvailable" }) 正常</label>
            <label> @Html.RadioButtonFor(m => m.IsAvailable, "false", new { @name = "IsAvailable" }) 禁用</label>
        </div>
    </div>
    <div class="control-group">
        <div class="align-center">
            <button class="btn btn-primary Edit-R" type="submit">
                <i class="icon-ok bigger-110"></i>
                保存
            </button>
            <button class="btn" type="reset" data-dismiss="modal" onclick="parent.layer.closeAll()">
                <i class="icon-undo bigger-110"></i>
                取消
            </button>
        </div>
    </div>
}

